(face-spec-set-match-display): Revert the change from
authorEli Zaretskii <eliz@gnu.org>
Mon, 13 Nov 2000 15:01:48 +0000 (15:01 +0000)
committerEli Zaretskii <eliz@gnu.org>
Mon, 13 Nov 2000 15:01:48 +0000 (15:01 +0000)
2000-10-24.  Add a FIXME for after v21.1.

lisp/faces.el

index 6cf55b0e9269de47aed63dc702e8c4000d5abf75..a8c9eee55173e742091f01830bcba60a6e31a479 100644 (file)
@@ -1146,9 +1146,14 @@ If FRAME is nil, the current FRAME is used."
            options (cdr conjunct)
            match (cond ((eq req 'type)
                         (or (memq window-system options)
-                            (if (display-graphic-p frame)
-                                (memq 'graphic options)
-                              (memq 'tty options))
+                            ;; FIXME: This should be revisited to use
+                            ;; display-graphic-p, provided that the
+                            ;; color selection depends on the number
+                            ;; of supported colors, and all defface's
+                            ;; are changed to look at number of colors
+                            ;; instead of (type graphic) etc.
+                            (and (null window-system)
+                                 (memq 'tty options))
                             (and (memq 'motif options)
                                  (featurep 'motif))
                             (and (memq 'lucid options)